//
//  HttpRequest.h
//  MoneyLog
//
//  Created by Max on 11-1-30.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface HttpRequest : NSObject<UIAlertViewDelegate> {
	NSMutableData * buffer;				//recieve buffer
	NSURLConnection * connection;		//connection object
	UIAlertView * progressAlertView;	//alert view
	
	int recvLen;
	int totalLen;
	int fileLen;
	bool isRecv;
	NSOutputStream * fileStream;
}

@property(nonatomic,retain) NSMutableData *buffer;
@property(nonatomic,retain) NSURLConnection *connection;
@property(nonatomic, retain) UIAlertView * progressAlertView;
@property(nonatomic, retain) NSOutputStream * fileStream;

-(void) updateApp:(NSString*) urlStr;
- (void) stopReceive;

@end
